<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div class="box">1</div>
    <div class="box3">3</div>
    <script>
      var divEle = document.createElement("div");
      divEle.innerHTML = "2";
      console.log(divEle);
      //   var boxEle = document.querySelector(".box");
      //   document.onclick = function () {
      //     boxEle.appendChild(divEle);
      //     document.body.appendChild(divEle);
      //   };
    </script>
  </body>
</html>
